package com.intellagric.service.agritech;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgtTag;

/**
 * @Author: cwq
 * @Date: 2019/2/21 13:44
 * @Description:
 */
public interface TagService {
    //增加
    ResponseMessage addTag(AgtTag tag);

    //删除
    ResponseMessage deleteTag(String id);

    //修改
    ResponseMessage editTag(AgtTag tag);

    //查询
    AgtTag getTagById(String id);
    LayuiDataGridResult getTagList();

    //通过父分类查询
    LayuiDataGridResult getTagByPid(String pId);
    //查询分类信息，并生成树形数据
    LayuiDataGridResult getTagTree();
}
